//
//  CFile.h
//

#pragma once

#include <windows.h>
#include <deque>
#include <algorithm>
#include <fstream>
#include <Shlwapi.h>
#include <string>


class CFile
{
public:
	CFile(const wchar_t* wcPath);
	~CFile(void);

	// Getters for CFile`s main values
	std::wstring getPath(void) const;
	std::wstring getName(void) const;
	std::wstring getSize(void) const;
	//SYSTEMTIME getDataOfCreation(void) const;

	// The method that return main information of CFile object like wchar_t
	std::wstring to_wstr() const;

	// The method that compare CFile objects` wsSize
	static bool compareFiles(const CFile &f1, const CFile &f2);

protected:
	std::wstring wsPath;
	std::wstring wsName;
	std::wstring wsSize;
	//SYSTEMTIME stDataOfCreation;

private:
	// The method that return the size of the file
	//	*fileName - path to our file
	std::wstring getFileSize(const std::wstring &fileName);

	// The method that get data of creation into stDataCreation
	/*SYSTEMTIME setDataOfCreation();*/
};